package com.santu.edu.supporter.biz.buildings.dao.mapper;

import com.santu.edu.supporter.biz.buildings.pojo.dto.BuildingsDTO;
import com.santu.edu.supporter.biz.buildings.pojo.po.BuildingsPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author npc234
 * @description 针对表【edu_supporter_user_buildings】的数据库操作Mapper
 * @createDate 2024-02-20 16:13:08
 * @Entity com.santu.edu.supporter.biz.buildings.pojo.po.Buildings
 */
@Mapper
public interface BuildingsMapper {

    void insertOne(@Param("item") BuildingsPO item);

    /**
     * 移除楼栋
     * @param buildingsId
     */
    void removeOne(@Param("buildingsId") String buildingsId);

    /**
     * 获取楼栋列表
     * @param codeType
     * @param schoolId
     * @return
     */
    List<BuildingsPO> getBuildingsList(@Param("codeType") Integer codeType,@Param("schoolId") String schoolId);

    /**
     * 根据id列表获取楼栋列表
     * @param buildIdList
     * @return
     */
    List<BuildingsPO> selectBuildsByIdList(@Param("buildIdList") List<String> buildIdList);

}




